package com.ug_project.spring_dict.DataAccess.Migrations

object FavoritesInUser : BaseIdTable("FavoritesInUser") {
    val userId = integer("UserId") references Users.id
    val favoriteID = integer("FavoriteID") references Favorites.id
    val canManage = bool("CanManageTheFavorite").default(false)
    val accessibility = integer("Accessibility").default(0)

    init {
        uniqueIndex(userId, favoriteID)
    }
}